import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/process_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class ProcessEntity {
	late int code;
	late String msg;
	late List<ProcessData> data;

	ProcessEntity();

	factory ProcessEntity.fromJson(Map<String, dynamic> json) => $ProcessEntityFromJson(json);

	Map<String, dynamic> toJson() => $ProcessEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ProcessData {
	late int id;
	late String title;
	late String content;
	@JSONField(name: "sort_id")
	late int sortId;
	dynamic platform;

	ProcessData();

	factory ProcessData.fromJson(Map<String, dynamic> json) => $ProcessDataFromJson(json);

	Map<String, dynamic> toJson() => $ProcessDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}